<?php

namespace Modules\Edu\Http\Controllers\Front;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use Modules\Edu\Entities\Studys;
use Spatie\Activitylog\Models\Activity;
class HomeController extends Controller
{

    public function index()
    {

        $studys=Studys::site()->with(['user','video'])->paginate();
        $activitys = Activity::latest()->paginate();

        return view('edu::index',compact('studys','activitys'));
    }


}
